package com.ecut.property_project.service.room;

import com.ecut.property_project.mapper.room.RoomPurposeMapper;
import com.ecut.property_project.model.room.RoomPurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomPurposeService{

    @Resource
    private RoomPurposeMapper roomPurposeMapper;

    
    public int deleteByPrimaryKey(Integer purposeId) {
        return roomPurposeMapper.deleteByPrimaryKey(purposeId);
    }

    
    public int insert(RoomPurpose record) {
        return roomPurposeMapper.insert(record);
    }

    
    public int insertSelective(RoomPurpose record) {
        return roomPurposeMapper.insertSelective(record);
    }

    public List<RoomPurpose> selectAll(){ return roomPurposeMapper.selectAll(); }

    public List<RoomPurpose> selectByPage(Integer page, Integer pageSize){return roomPurposeMapper.selectByPage(page,pageSize);}

    public RoomPurpose selectByPrimaryKey(Integer purposeId) {
        return roomPurposeMapper.selectByPrimaryKey(purposeId);
    }
    public List<RoomPurpose> selectByHeadId(String headId){
        return roomPurposeMapper.selectByHeadId(headId);
    }
    
    public int updateByPrimaryKeySelective(RoomPurpose record) {
        return roomPurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(RoomPurpose record) {
        return roomPurposeMapper.updateByPrimaryKey(record);
    }

}
